//https://leetcode.cn/problems/lian-biao-zhong-dao-shu-di-kge-jie-dian-lcof/

struct ListNode* trainingPlan(struct ListNode* head, int cnt) {
    struct ListNode* cur = head;
    int count = 0;
    while (cur)
    {
        count++;
        cur = cur->next;
    }
    cur = head;
    while (count != cnt)
    {
        cur = cur->next;
        count--;
    }

    return cur;

}